import request from '@/api/request.js'
// 发送网络请求
const token = localStorage.getItem('ordinaryUserToken') || localStorage.getItem('token')

export const tcCategory = () => {
  return request({
    // http://localhost:8888/category/info
    url: '/category/tcInfo',
    method: 'GET',
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}

export const vMCategory = () => {
  return request({
    // http://localhost:8888/category/info
    url: '/category/vmInfo',
    method: 'GET',
    headers: {
      accept: 'application/json',
      Authorization: `Bearer ${token}`
    }
  })
}
